package com.stedu.mall.common.service;

import com.github.pagehelper.PageInfo;
import com.stedu.mall.common.bean.User;
import com.stedu.mall.common.exception.SteduException;

public interface UserService {
    //登录
    User login(String username, String password) throws SteduException;
    //注册
    boolean reg(User user) throws SteduException;
    //分页查询所有用户
    PageInfo<User> selectByAll(User user, Integer pageNum, Integer pageSize);
    //修改用户 - 电话 邮箱 权限
    boolean update(User user);
    //重置密码
    boolean reset(User user);

    //根据id查询
    User selectById(Integer id);

    //根据用户名查询
    User selectByUserName(String username);

    //身份认证
    boolean updateU(User user) throws SteduException;

    //修改信息
    boolean uUpdate(User user) throws SteduException;

    //修改登录密码
    boolean updateL(User user);

    //修改支付密码
    boolean updateP(User user);

    boolean updateInsert(User user);
}
